<?php
	require_once('auth/autenticar.php');
	require_once('conectar.php');
	
	$resultado=false;
	$iduni=mysql_real_escape_string($_POST['iduni']);
	$result = mysql_query("SELECT * FROM unidad WHERE id=$iduni");

	if ($row = mysql_fetch_array($result, MYSQL_ASSOC)){
		$answer='"nombre":"'.$row["nombre"].'"';
		$answer.=',"iduni":"'.$iduni.'"';
		
	}
	$answer='{'.$answer.'}';
	echo $answer;
?>
